import { Context, Next } from "koa";
import Router from "koa-router";
import DbUtil from "../utils/db";
import fetch from "../utils/request";

const userRouter = new Router();
// { prefix: "/" }

userRouter.get("/", async (ctx: Context, next: Next) => {
  ctx.body = "hello word";
});

userRouter.get("/notice/c/notify", async (ctx: Context, next: Next) => {
  // const res = await fetch({
  //   url:""
  // });
  ctx.body = "hello word";
});

export default userRouter;
